<?php require 'TVB/pms/pdes/CmsFramework/requires.php';?>


<!doctype html public "-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

	<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
	<title>TVB.COM - PMS2.0 - PDES</title>
    <meta http-equiv="Cache-Control" CONTENT="no-cache" />
    <?php include("inc/embed_top.php"); ?>    

</head>

<body id="pms-ane">

	<div id="doc4">

		<div id="hd">



          	<?php include("inc/masthead.php"); ?>
          	<?php include("inc/cms_header.php"); ?>

		</div>

		<div id="bd">

            <?php

            $act = isset($data['act']) ? $data['act'] : 'add';
            $type = isset($data['type']) ? $data['type'] : 'programme';
			$step = isset($data['step']) ? $data['step'] : 1;
			$act_text = ($act === "add") ? "Create" :ucfirst($act);
			$step = (int)$step;

            switch ($type) {
                case 'cast':
                    include("inc/cast-step".$step.".php");
                break;
                case 'programme':
                    include("inc/programme-step".$step.".php");
                    include("inc/pop-player.php");
                break;
                case 'episode':
                    include("inc/episode-step".$step.".php");
                    include("inc/pop-player.php");
                break;
                case 'song':
                    include("inc/song.php");
                break;
                case 'address':
                    include("inc/address.php");
                break;
                case 'recipe':
                    include("inc/recipe.php");
                break;
                case 'biography':
                    include("inc/biography.php");
                break;
                case 'product':
                    include("inc/product.php");
                break;
                case 'qa':
                    include("inc/qa.php");
                break;
                case 'award':
                    include("inc/award.php");
                break;
                case 'general_info':
                    include("inc/general_info.php");
                break;
                case 'pageant':
                    include("inc/pageant.php");
                break;
                case 'chapter_marking':
                    include("inc/chapter_marking.php");
                    include("inc/pop-videolist.php");
                break;
                case 'image':
                    include("inc/image.php");
                    include("inc/pop-cast.php");
                break;
                case 'video':
                    include("inc/chapter_marking.php");
                    include("inc/pop-videolist.php");
                    include("inc/pop-cast.php");
                break;
                case 'mis':
                    include("inc/mis-list.php");
                break;
                default:
                    //include("inc/great-form.php");
                    break;
            }

            ?>

            <?php include("inc/pop-list.php"); ?>
            <?php include("inc/pop-find.php"); ?>
            <?php include("inc/pop-red.php"); ?>
            <?php include("inc/pop-folder.php"); ?>
            <?php include("inc/pop-sync.php"); ?>

		</div>

		<div id="ft">

          	<?php include("inc/footer.php"); ?>

		</div>

	</div>

    <?php include("inc/global-cfg.php"); ?>
    <?php include("inc/embed_bottom.php"); ?>    

</body>

</html>
